import {defineStore} from "pinia";
import {ref} from "vue";

export const useMenuStore = defineStore('menu',() => {
    const activeMenuPath = ref('')

    function setActiveIndex(index:string) {
        activeMenuPath.value = index;
    }

    return {
        activeMenuPath,
        setActiveIndex
    }
})